<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        a {
            text-decoration: none;
        }
        /* 顶部样式 */
        header {
            width: 100%;
            display: flex;
        }
        header > a {
            flex: 1;
        }
        header > a > img {
            width: 100%;
        }
        /* main */
        main {
            width: 100%;
            /* 设置盒子模型 不让会超过100% 盒子 */
            box-sizing: border-box;
            padding: 0 10px;
        }
        main > .item {
            width: 100%;
            height: 100px;
            background-color: #79d3ff;
            border-radius: 10px;
            margin-top: 10px;
            display: flex;
        }
        main > .item:nth-of-type(2){
            background-color: #abff57;
        }
        main > .item:nth-of-type(3){
            background-color: #ff64ff;
        }
        main > .item:nth-of-type(4){
            background-color: #84ffff;
        }
        main > .item > .left {
            flex: 1;
        }
        main > .item > .right {
            flex: 2;
            display: flex;
            /* 设置换行显示 */
            flex-wrap: wrap;
        }
        main > .item > .right > a {
            /* 如果想让子元素换行显示  那么 子元素的总宽度一定要大于父元素的宽度 */
            width: 50%;
            display: block;
            text-align: center;
            line-height: 50px;
            color: #fff;
            box-sizing: border-box;
            border-bottom: 1px solid #fff;
            border-left: 1px solid #fff;
        }
        main > .item > .right > a:nth-last-of-type(-n+2){
             /* 倒数两个 */
            border-bottom: none;
        }

        /* extra */
        main > .extra {
            width: 100%;
            display: flex;
        }
        main > .extra > a {
            margin-top: 10px;
            flex:1;
        }
        main > .extra > a:nth-of-type(1){
            margin-right: 10px;
        }
        main > .extra > a >img {
            width: 100%;
        }

        /* footer */
        footer {
            width: 100%;
            font-size: 13px;
        }
        footer > nav {
            width: 100%;
            display: flex;
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
        }
        footer > nav > a {
            flex: 1;
            line-height: 30px;
            text-align: center;
            color: rgba(0, 0, 0, .7);
        }
        footer > .link {
            text-align: center;
            line-height: 25px;
        }
        footer > .copyRight {
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <a href="">
                <img src="img/header.png" alt="">
            </a>
        </header>
        <main>
            <section class="item">
                <div class="left"></div>
                <div class="right">
                    <a href="">海外酒店</a>
                    <a href="">团购</a>
                    <a href="">优惠酒店</a>
                    <a href="">客栈公寓</a>
                </div>
            </section>
            <section class="item">
                <div class="left"></div>
                <div class="right">
                    <a href="">海外酒店</a>
                    <a href="">团购</a>
                    <a href="">优惠酒店</a>
                    <a href="">客栈公寓</a>
                </div>
            </section>
            <section class="item">
                <div class="left"></div>
                <div class="right">
                    <a href="">海外酒店</a>
                    <a href="">团购</a>
                    <a href="">优惠酒店</a>
                    <a href="">客栈公寓</a>
                </div>
            </section>
            <section class="item">
                <div class="left"></div>
                <div class="right">
                    <a href="">海外酒店</a>
                    <a href="">团购</a>
                    <a href="">优惠酒店</a>
                    <a href="">客栈公寓</a>
                </div>
            </section>
            <div class="extra">
                <a href="">
                    <img src="img/extra1.png" alt="">
                </a>
                <a href="">
                    <img src="img/extra1.png" alt="">
                </a>
            </div>
        </main>
        <footer>
            <nav>
                <a href="">电话预定</a>
                <a href="">下载客户端</a>
                <a href="">我的客户端</a>
            </nav>
            <p class="link">
                <a href="">网站地图</a>
                <a href="">english</a>
                <a href="">电脑版</a>
            </p>
            <p class="copyRight">&copy;2015携程旅行</p>
        </footer>
    </div>

</body>
</html>